﻿@model VisaApp.Helper.PagedData<VisaApp.Models.ThongtinhuuichModel>
@{ VisaApp.Helper.StringHelpers nameurl = new VisaApp.Helper.StringHelpers();}


<script type="text/javascript">
    $(document).ready(function () {
        $(".page-number").live("click", function () {
            show_Loading();
            var page = parseInt($(this).html());
            $.get("/News/ListThongtinHuuichKhac?id=" + @ViewBag.ID + "&page=" + page, function (data) {
                $(".contentListThongtinHuuichKhac").html("");
                $(".contentListThongtinHuuichKhac").html(data);
                $('#box-busy').fadeOut('medium', function () {
                    $('.black_overlay').css('display', 'none');
                });

            });
        });
    });

</script>

<div class="service-c2-ct" style="margin-left: 20px;">
    @if (Model.Data != null)
    {
        <ul class="thongtinhuuichkhac">
        @foreach (var item in Model.Data)
        {
                
                <li>
                    <a class="aTtHuDetails" href="/thong-tin-huu-ich/@nameurl.RemoveSign4VietnameseString(item.Name)/@item.Id">@item.Name</a>
                </li>
                
        }
        </ul>
    }
    <div class="PageNav">
        <span class="pageNavHeader">Trang @Model.CurrentPage / @Model.NumberOfPages</span>
        @for (int m = 1; m <= Model.NumberOfPages; m++)
        {
            if (m == Model.CurrentPage)
            {
            <a class="currentPage" href="javascript:void(0);">@m</a>
            }
            else
            {
            <a class="page-number" href="javascript:void(0);">@m</a>
            }
        }
        <a href="javsscript:void(0)" class="text">Sau &gt;</a>
    </div>



</div>
